import Vue from 'vue'
// 配置路由
import VueRouter from 'vue-router'
Vue.use(VueRouter)


import VueResource from 'vue-resource'
Vue.use(VueResource)
Vue.http.options.root='http://www.liulongbin.top:3005';
Vue.http.options.emulateJson=true;

import moment from 'moment'
// 全局过滤器
Vue.filter('dateFormat',function(dataStr,pattern="YYYY-MM-DD HH:mm:ss"){
   return moment(dataStr).format(pattern)
})

// mui
import './lib/mui/css/mui.min.css';
import './lib/mui/fonts/mui-icons-extra.ttf';
import './lib/mui/css/icons-extra.css';

// import { Header, Swipe, SwipeItem ,Button,Lazyload} from 'mint-ui'
// Vue.component(Header.name, Header)
// Vue.component(Swipe.name, Swipe)
// Vue.component(SwipeItem.name, SwipeItem)
// Vue.component(Button.name, Button)
// Vue.use(Lazyload);
import MintUI from 'mint-ui'
Vue.use(MintUI)
import 'mint-ui/lib/style.css'

// 安装图片预览
import VuePreview from 'vue-preview'
Vue.use(VuePreview)

import router from './router.js'

import app from './App.vue'
var vm=new Vue({
    el:'#app'    ,
    render:c=>c(app),
    router
})